<!doctype html>
<html ng-app="myApp">
<head>
    <script src="../js/angular.min.js"></script>
</head>
<body>

    {{ someProperty }}
    <button ng-click="someAction()">Communicate</button>

<script>
    angular.module('myApp', []).run(function($rootScope){

        $rootScope.someProperty="hello world";
        $rootScope.someAction = function(){
            $rootScope.someProperty="hello man";
        }

    });
</script>

</body>
</html>